package com.cyc.basic.pojo.vo;

import com.cyc.common.annotation.valid.CheckRegion;
import com.cyc.common.enums.UserTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.List;

/**
 * @author chenyunchang
 * @title
 * @date 2021/1/7 13:57
 * @Description:
 */
@Data
@ApiModel(value = "UserSaveReq")
public class UserSaveReq implements Serializable {

    @NotBlank(message = "姓名不能为空")
    private String name;

    @NotNull(message = "年龄不能为空")
    private Integer age;

    @NotBlank(message = "性别不能为空")
    private String sex;

    @NotBlank(message = "地址不能为空")
    @CheckRegion(message = "地址不在所选范围内")
    private String region;
}
